﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListJudge.aspx.cs" Inherits="Maticsoft.Web.sysMan.ListJudge" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            font-size: 13px;
            font-weight: bold;
            color: #0000FF;
        }
        .topM
        {
        	margin-top:18px;
        	}
        .style3
        {
            color: #FF0000;
            font-weight: bold;
        }
    </style>
</head>
<body style=" font-size:12px;">
    <form id="form1" runat="server">
    <div>
    <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">判断题操作</span></legend>
                <div style="text-align:center">

                     <table cellpadding="0" cellspacing="0" class="style1">
                         <tr>
                             <td style=" width:180px; height:18px;">
                                 &nbsp;</td>
                             <td style=" text-align:left">
                                 &nbsp;</td>
                         </tr>
                         
                         <tr>
                             <td style=" width:180px; height:18px;">
                                 请选择<span class="style3">判断题</span>导入文档：&nbsp;</td>
                             <td style=" text-align:left">
                                 <input id="FileExcel" runat="server" name="FilePhoto" size="42" 
                        style="width: 300px" type="file" />&nbsp; <font color="red">
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl="~/template/judge.xls">判断题导入模板下载</asp:HyperLink>
                    *请务必保证导入文件格式和模板严格一致</font><asp:Button ID="btn_single" runat="server" Text="导入判断题" 
                                     onclick="btn_single_Click" />
                             </td>
                         </tr>
                         
                         <tr>
                             <td style=" width:180px; height:18px;">
                                 &nbsp;</td>
                             <td style=" text-align:left">
                                 &nbsp;</td>
                         </tr>
                         
                         <tr>
                             <td style=" height:18px;" colspan="2">
                                 
                                 <asp:GridView ID="gridView" runat="server" AllowPaging="True" 
                                     AutoGenerateColumns="False" BorderWidth="1px" CellPadding="3" 
                                     DataKeyNames="judgeId" OnPageIndexChanging="gridView_PageIndexChanging" 
                                     OnRowCreated="gridView_OnRowCreated" OnRowDataBound="gridView_RowDataBound" 
                                     RowStyle-HorizontalAlign="Center" Width="100%">
                                     <Columns>
                                         <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="DeleteThis" runat="server" onclick="javascript:CCA(this);" />
                                             </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="jtitle" HeaderText="题目" 
                                             ItemStyle-HorizontalAlign="Center" SortExpression="jtitle">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                         </asp:BoundField>
                                         <asp:BoundField DataField="jkey" HeaderText="答案" 
                                             ItemStyle-HorizontalAlign="Center" SortExpression="jkey">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                         </asp:BoundField>
                                         <asp:BoundField DataField="jscore" HeaderText="分值" 
                                             ItemStyle-HorizontalAlign="Center" SortExpression="jscore">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                         </asp:BoundField>
                                         <asp:BoundField DataField="stuType" HeaderText="类型" 
                                             ItemStyle-HorizontalAlign="Center" SortExpression="stuType">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                         </asp:BoundField>
                                         <asp:HyperLinkField ControlStyle-Width="50" DataNavigateUrlFields="judgeId" 
                                             DataNavigateUrlFormatString="ModifyJudge.aspx?id={0}" HeaderText="编辑" Text="编辑">
<ControlStyle Width="50px"></ControlStyle>
                                         </asp:HyperLinkField>
                                         <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                             <ItemTemplate>
                                                 <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                     CommandName="Delete" Text="删除"></asp:LinkButton>
                                             </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                                         </asp:TemplateField>
                                     </Columns>

<RowStyle HorizontalAlign="Center"></RowStyle>
 <PagerStyle CssClass="mypager" />
                                 </asp:GridView>
                                 
                             </td>
                         </tr>
                         
                         <tr>
                             <td style=" height:18px;" colspan="2">
                        <asp:Button ID="btnDelete" runat="server" Text="删除选定项" OnClick="btnDelete_Click" OnClientClick="return confirm('确定要删除选定项吗？')"
                                     Width="97px"/>                       
                             </td>
                         </tr>
                         
                         <tr>
                             <td style=" width:180px; height:18px;">
                                 &nbsp;</td>
                             <td style=" text-align:left">
                                 &nbsp;</td>
                         </tr>
                         
                     </table>

                     </div>
                   

    </div>
    </form>
</body>
</html>

